<div class="orderLineItems view">
<h2><?php  __('Order Line Item');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $orderLineItem['OrderLineItem']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Order'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($orderLineItem['Order']['id'], array('controller' => 'orders', 'action' => 'view', $orderLineItem['Order']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('User'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($orderLineItem['User']['id'], array('controller' => 'users', 'action' => 'view', $orderLineItem['User']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Menu Item'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($orderLineItem['MenuItem']['id'], array('controller' => 'menu_items', 'action' => 'view', $orderLineItem['MenuItem']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $orderLineItem['OrderLineItem']['created']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $orderLineItem['OrderLineItem']['modified']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Order Line Item', true), array('action' => 'edit', $orderLineItem['OrderLineItem']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Order Line Item', true), array('action' => 'delete', $orderLineItem['OrderLineItem']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $orderLineItem['OrderLineItem']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Order Line Items', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Order Line Item', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Orders', true), array('controller' => 'orders', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Order', true), array('controller' => 'orders', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Menu Items', true), array('controller' => 'menu_items', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Menu Item', true), array('controller' => 'menu_items', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Order Line Item Details', true), array('controller' => 'order_line_item_details', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Order Line Item Detail', true), array('controller' => 'order_line_item_details', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Order Line Item Details');?></h3>
	<?php if (!empty($orderLineItem['OrderLineItemDetail'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Order Line Item Id'); ?></th>
		<th><?php __('Detail Type'); ?></th>
		<th><?php __('Ingredient Id'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($orderLineItem['OrderLineItemDetail'] as $orderLineItemDetail):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $orderLineItemDetail['id'];?></td>
			<td><?php echo $orderLineItemDetail['order_line_item_id'];?></td>
			<td><?php echo $orderLineItemDetail['detail_type'];?></td>
			<td><?php echo $orderLineItemDetail['ingredient_id'];?></td>
			<td><?php echo $orderLineItemDetail['created'];?></td>
			<td><?php echo $orderLineItemDetail['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'order_line_item_details', 'action' => 'view', $orderLineItemDetail['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'order_line_item_details', 'action' => 'edit', $orderLineItemDetail['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'order_line_item_details', 'action' => 'delete', $orderLineItemDetail['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $orderLineItemDetail['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Order Line Item Detail', true), array('controller' => 'order_line_item_details', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
